<?
class jQuickform extends HTML_QuickForm2{
    /**
     *
     * @return jQuickform_Css
     */
    static function css(){
        static $css;
        if(!$css){
            $css = new jQuickform_Css;
            $css->_domain_static = 'http://'.$_SERVER['HTTP_HOST'];
        }
        return $css;
    }



    /**
     * Реализация паттерна Singleton
     *
     * @return jQuickform_Js
     */
    static function js(){
        static $js;
        if(!$js){
            $js = new jQuickform_Js;
        }
        return $js;
    }

}
?>